package com.example.moudlec.controller;

import com.example.moudlec.entity.ExeorderDt;
import com.example.moudlec.service.ExeorderDtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@SuppressWarnings("all")
@RestController
@RequestMapping("/moudlec/exeorderdt")
public class ExeorderDtController {
    @Autowired
    ExeorderDtService service;

    @RequestMapping("/selExDtList")
    List<ExeorderDt> selExeorderDtList(Long orderId, Integer productId) {
        return service.selExeorderDtList(orderId, productId);
    }

    @RequestMapping("/selExeorder")//moudlec/exeorderdt
    public List<ExeorderDt> selExeorder(@RequestParam("orderId") Long orderId, @RequestParam("productId")Integer productId,@RequestParam("exeorderdtId") Long exeorderdtId) {
        return service.selExeorder(orderId, productId, exeorderdtId);
    }
}
